<?php
/**
 * Created by PhpStorm.
 * User: Y.M
 * Date: 2018/6/14/014
 * Time: 15:28
 */

namespace App\Http\Eloquent;


use App\Company;

class CompanyRepository implements Repository
{
    public static $CommpanyModel;
    public function __construct()
    {
        CompanyRepository::$CommpanyModel = new Company();
    }

    public static function find($id = 0, $select = ['*'])
    {
        // TODO: Implement find() method.

    }
    public static function first($where = [], $select = ['*'],$orderBy=['id','desc'])
    {
        // TODO: Implement first() method.
        return Company::where($where)->select($select)->orderBy($orderBy[0],$orderBy[1])->first();
    }
}